from fastapi import APIRouter
from app.schemas.base import Success
from .visit_db import initialize_tabel, query_all

router = APIRouter()


@router.get("/helloworld", summary="hello ...")
async def _():
    initialize_tabel()
    persons = query_all()
    return Success(data={"msg": persons})
